package com.sz.virtualbank.web.vo.transaction;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;


import java.math.BigDecimal;

/**
 * 转账请求视图对象
 * 
 * @author Claude
 */
@Data
@ApiModel(description = "转账请求参数")
public class TransferReqVO {
    
    @NotBlank(message = "目标账户不能为空")
    @ApiModelProperty(value = "目标账户(用户名或手机号)", required = true)
    private String targetAccount;
    
    @NotNull(message = "转账金额不能为空")
    @DecimalMin(value = "0.01", message = "转账金额必须大于0")
    @ApiModelProperty(value = "转账金额", required = true)
    private BigDecimal amount;
    
    @ApiModelProperty(value = "备注")
    private String remark;
    
    @NotBlank(message = "支付密码不能为空")
    @ApiModelProperty(value = "支付密码", required = true)
    private String payPassword;
}
